package com.liy.framework.common.extvo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class LoginInfo implements Serializable {
    private String id;
    private String account;
    private String name;
    private String userType;
    private String userStatus;
    private String loginIp;
    private long loginTime;

    private List<StationRolesVo> stationRoles;

    public LoginInfo() {
    }

    public List<String> getRoles(String stationId) {
        List<String> list = new ArrayList();
        Iterator var3 = this.stationRoles.iterator();

        while(true) {
            StationRolesVo stationRolesVo;
            do {
                if (!var3.hasNext()) {
                    return list;
                }

                stationRolesVo = (StationRolesVo)var3.next();
            } while(!stationRolesVo.getStationId().equals(stationId));

            Iterator var5 = stationRolesVo.getRoles().iterator();

            while(var5.hasNext()) {
                RoleVo role = (RoleVo)var5.next();
                list.add(role.getRoleId());
            }
        }
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccount() {
        return this.account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserType() {
        return this.userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserStatus() {
        return this.userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getLoginIp() {
        return this.loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public long getLoginTime() {
        return this.loginTime;
    }

    public void setLoginTime(long loginTime) {
        this.loginTime = loginTime;
    }

    public List<StationRolesVo> getStationRoles() {
        return this.stationRoles;
    }

    public void setStationRoles(List<StationRolesVo> stationRoles) {
        this.stationRoles = stationRoles;
    }
}
